package com.sunther.document.controller;

import com.sunther.document.service.DictService;
import com.sunther.idb.common.util.WebResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author csb
 * @description: TODO
 * @date 2023/5/30 15:17
 */
@RestController
@RequestMapping("/dict")
public class DictController {

    @Autowired
    private DictService dictService;

    @GetMapping("/find_by_type")
    public WebResult findByType(@RequestParam String type){
        return dictService.findByType(type);
    }
}
